//
//  BaseTableViewController.swift
//  ZJWeiBo
//
//  Created by 张建 on 2018/3/20.
//  Copyright © 2018年 micheal. All rights reserved.
//

import UIKit

class BaseTableViewController: UITableViewController {
    
    var isUserLogin = false
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        
    }
    
    // 自定义视图
    override func loadView() {
        
        isUserLogin ? super.loadView():loadCustomView()
    }
    
    
    /// 加载自定义游客界面
    func loadCustomView() {
        
        let customView = VisitorView(frame: UIScreen.main.bounds)
        view = customView
    }
    
}
